package com.jsj.domain;

import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Component
public class Number {
    private int id;
    private int topicId;
    private int problemId;
    private int number;

    public Number() {
    }

    public Number(int id, int topicId, int problemId, int number) {
        this.id = id;
        this.topicId = topicId;
        this.problemId = problemId;
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getTopicId() {
        return topicId;
    }

    public void setTopicId(int topicId) {
        this.topicId = topicId;
    }

    public int getProblemId() {
        return problemId;
    }

    public void setProblemId(int problemId) {
        this.problemId = problemId;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Number{" +
                "id=" + id +
                ", topicId=" + topicId +
                ", problemId=" + problemId +
                ", number=" + number +
                '}';
    }
}
